<%@ page title="" language="C#" masterpagefile="~/RealtimeSite.master" autoeventwireup="true" inherits="Holiday, App_Web_odyrwiur" %>



<%@ Register Assembly="Heidarpour.WebControlUI" Namespace="Heidarpour.WebControlUI"
    TagPrefix="rhp" %>
<%@ Register   Assembly="AjaxControlToolkit"
    Namespace="AjaxControlToolkit"
    TagPrefix="AjaxControlToolkit" %>
    <%@ Register   Assembly="AjaxControlToolkit"
    Namespace="AjaxControlToolkit"
    TagPrefix="cc1" %>


<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
    <link href="css/googleapis.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .style6
        {
            width: 915px;
            color: #FFFFFF;
        }
        .style14
        {
            height: 27px;
            width: 906px;
            font-size: 8pt;
        }
           .textbox
        {}
        .btnRt003366
        {}
        .style26
        {
            font-family: Verdana;
            font-size: 9pt;
            font-weight: 700;
        }
        .style17
        {
            width: 175px;
        }
        .style16
        {
            width: 286px;
        }
        .style27
        {
            height: 27px;
            width: 906px;
            font-size: 8pt;
            color: #FFFFFF;
        }
        .style28
        {
            color: #FFFFFF;
        }
        .style25
        {
            font-family: Verdana;
            font-size: 8pt;
        }
        .style35
        {
            color: #FFFFFF;
        }
        body
{
font-family: 'Arimo', sans-serif !important;
}
        .breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: .05rem 0rem;
    /* margin-bottom: 1rem; */
    list-style: none;
    background-color: #fff !important;
    border-radius: .25rem;
    color: #E15C11;
    font-size: 18px;
    font-weight: 500;
}
.card [class*=card-header-]:not(.card-header-icon):not(.card-header-text):not(.card-header-image) {
    border-radius: 3px;
    margin-top: -20px;
    padding: 7px !important;
    padding-left: 10px;
}
.grid-lable {
    height: 150px;
    overflow-y: scroll;
    border: 1px solid #ddd;
    margin-left: -10px;
    margin-right: -10px;
    padding: 6px;
}
.grid-lable span {
    font-size: 15px !important;
    line-height: 1.32857 !important;
    color: #333 !important;
    font-weight: 200 !important;
    padding-left: 7px !important;
    padding-top: -3px !important;
    position: relative !important;
    top: -3px !important;
}

#MainContent_lblHolidayName
{
    font-size:14px;
    font-weight:bold;
}
#MainContent_lblHolidayDate
{
    font-size:14px;
    font-weight:bold;   
}
#MainContent_lblDescription
{
     font-size:14px;
    font-weight:bold;   
}
#MainContent_lblSelectionBy
{
    font-size: 15px;
    font-weight: 600;
}
#MainContent_lblHoliDayDetails
{
    font-size: 15px;
    font-weight: 600;
}
           </style>
    <script language="javascript" type="text/javascript">
// <![CDATA[

        function validate() {
            var txttext = document.getElementById("<%= txtholidayname.ClientID %>").value;
            if (txttext == "") {
                alert("Please Enter Holiday Name");
                document.getElementById("<%= txtholidayname.ClientID %>").focus();
                return false;
            }

            var txttext = document.getElementById("<%= txtholidate.ClientID %>").value;
            if (txttext == "") {
                alert("Please Enter Holiday Date");
                document.getElementById("<%= txtholidate.ClientID %>").focus();
                return false;
            }
            else {
                if (!isDate(txttext))
                    return false;
            }




            var txtHA = document.getElementById("<%= txtholiadjustdate.ClientID %>");
            if (!txtHA.disabled) {
                if (txtHA.value == "") {
                    alert("Please Enter Holiday Adjust Date");
                    txtHA.focus();
                    return false;
                }
                else {
                    if (!isDate(txtHA.value))
                        return false;
                }
            }
        }

// ]]>
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
      <div class="main-panel">
        <div class="content">
        <div class="container" id="Holiday12" runat="server">
             <div class="row dash-pane2">	

             <div class="card">
                <div class="card-header card-header-warning" id="cardheadergreen" runat="server">
                  <h4 class="card-title"><i class="fa fa-edit fa-fw"></i> <asp:Label ID="lblAddEditHoliDay" runat="server" Text=" Add Edit HoliDay"></asp:Label></h4>
                </div>
                <div class="card-body table-responsive">
                 <div class="row breadcrumb">
                 <b><asp:Label ID="lblHoliDayDetails" runat="server" Text="HoliDay Details"></asp:Label>  </b>
                 </div>
                 <div class="row" style="margin-top:-15px;">
                 <div class="col-md-4">
							 <asp:Label ID="lblHolidayName" runat="server" Text="Holiday Name"></asp:Label> *
							  
                              <asp:TextBox ID="txtholidayname" runat="server" class="form-control"
                TabIndex="1"
                ontextchanged="txtholidayname_TextChanged"></asp:TextBox>
							  </div>
							  <div class="col-md-4">
								<asp:Label ID="lblHolidayDate" runat="server" Text="Holiday Date"></asp:Label> *
							 

                               <asp:TextBox ID="txtholidate" runat="server" autocomplete="off" class="form-control"
                    TabIndex="2" ontextchanged="txtholidate_TextChanged"></asp:TextBox> 
                      <asp:Panel ID="Panel53" runat="server" Visible="false">
                    <rhp:DatePicker ID="DatePicker1" runat="server" DatePersian="1391/07/14" CalendarType="Persian"  
        BorderColor="#CCCCCC" BorderStyle="Solid" BorderWidth="1px" ShowWeekNumbers="True"
        ReadOnly="True" FirstDayOfWeek="Monday" ShowOthers="True"  ></rhp:DatePicker>
        </asp:Panel>

                    <cc1:CalendarExtender ID="CalendarExtender1" runat="server" Format="dd/MM/yyyy" TargetControlID="txtholidate"></cc1:CalendarExtender> 
          
							  </div>							   
							    <div class="col-md-4">
										<asp:Label ID="lblDescription" runat="server" Text="Description"></asp:Label>
							  
                                 <asp:TextBox ID="txtholidaydesc" runat="server" autocomplete="off" 
                onchange="return verifyPhone();" class="form-control"
                TabIndex="3" 
                ontextchanged="txtholidaydesc_TextChanged"></asp:TextBox>					    
							   </div> 
                                <asp:TextBox ID="txtholiadjustdate" enabled="False" runat="server"  Visible="False"  ontextchanged="txtholiadjustdate_TextChanged"></asp:TextBox>
                                <asp:CheckBox ID="chkadjust" runat="server" AutoPostBack="true" 
                oncheckedchanged="chkadjust_CheckedChanged" TabIndex="5" 
                Text="Is Paid" Visible="False"   />
							   </div>

                    <div class="row breadcrumb" style="margin-top:0px;">
                    <b><asp:Label ID="lblSelectionBy" runat="server" Text="Selection By"></asp:Label></b>
                    </div>
                    <div class="row" style="margin-left:-10px; margin-right:0px; margin-top:-20px; width:100%">
                       <ul class="list-inline" style="width:100%; display:contents">
                        <li style="width:17.5%; margin-left:20px;">
                        <div class="grid-lable2" style="margin-left:-11px; margin-bottom:5px;">
                      <asp:RadioButton ID="SelectAllCommany" runat="server" Checked="True" 
                GroupName="Cmpny" Text="" AutoPostBack="True" 
                oncheckedchanged="SelectAllCommany_CheckedChanged"/><asp:Label ID="lblAllCompany" runat="server" Text="All Company"></asp:Label><br />
                <asp:RadioButton ID="FewCompany" runat="server" GroupName="Cmpny" 
                    Text=""   /><asp:Label ID="lblFewCompany"  runat="server" Text="Few Company"></asp:Label><br />                       
                        </div>
							 <div class="grid-lable"> 
 
                    <asp:CheckBoxList ID="chkcompanylist" runat="server" AutoPostBack="True" 
                                         
                                          onselectedindexchanged="chkcompanylist_SelectedIndexChanged" 
                                      Font-Size="12px">
                                      </asp:CheckBoxList>
							  </div>                        
                        </li>
                        <li style="width:17.5%; margin-left:27px;">
                        <div class="grid-lable2" style="margin-left:-17px; margin-bottom:5px;">
                                 <asp:RadioButton ID="Allshift" runat="server" GroupName="shift1" 
                     Text=""  Checked="True" AutoPostBack="True" 
                     oncheckedchanged="Allshift_CheckedChanged" style="font-size: 9pt" /><asp:Label ID="lblAllBranch" runat="server" Text="All  Branch"></asp:Label> <br />
                     <asp:RadioButton ID="Allshift1" runat="server" GroupName="shift1" 
                    
                    Text=""  AutoPostBack="True" style="font-size: 9pt" 
                                      oncheckedchanged="Allshift1_CheckedChanged" /><asp:Label ID="lblFewBranch" runat="server" Text="Few Branch"></asp:Label><br />                        
                        </div>
 							   <div class="grid-lable"> 

                    <asp:CheckBoxList ID="Chkshiftlist" runat="server" AutoPostBack="True" Font-Size="12px" 
                                          
                                            onselectedindexchanged="Chkshiftlist_SelectedIndexChanged">
                                        </asp:CheckBoxList><br />
                                         
							  </div>                       
                        </li>
                        <li style="width:17.5%; margin-left:27px;">
                        <div class="grid-lable2" style="margin-left:-17px; margin-bottom:5px;">
                               <asp:RadioButton ID="AllDesignation" runat="server" Checked="True" GroupName="Dept" 
                Text="" style="font-size: 9pt" /><asp:Label ID="lblAllDepartment" runat="server" Text="All Department"></asp:Label><br />
                 <asp:RadioButton ID="optfewDesignation" runat="server"  
                    GroupName="Dept" Text=""  
                    oncheckedchanged="optfewdept_CheckedChanged" style="font-size: 9pt" /><asp:Label ID="lblFewDepartment" runat="server" Text="Few Department"></asp:Label><br />                        
                        </div>
 							 <div class="grid-lable"> 

                     <asp:CheckBoxList ID="chkdepartmentlist" runat="server" AutoPostBack="True"  Font-Size="12px"
                                          onselectedindexchanged="chkdepartmentlist_SelectedIndexChanged" 
                                     >
                                      </asp:CheckBoxList>
							  </div>                       
                        </li>
                        <li style="width:17.5%; margin-left:27px;">
                         <div class="grid-lable2" style="margin-left:-17px; margin-bottom:5px;">
                                 <asp:RadioButton ID="RadioButton1" runat="server" Checked="True" GroupName="Desig" 
                Text="" style="font-size: 9pt"
                 /><asp:Label ID="lblAllDesignation" runat="server" Text="All  Designation"></asp:Label> <br />
                 <asp:RadioButton ID="optFewEmployee0" runat="server" AutoPostBack="True" 
                        GroupName="Desig" oncheckedchanged="optAllemployee_CheckedChanged" 
                        Text="" style="font-size: 9pt"  /><asp:Label ID="lblFewDesignation" runat="server" Text="Few Designation"></asp:Label><br />                        
                         </div>
							<div class="grid-lable"> 

                         <asp:CheckBoxList ID="ChkDesignationList" runat="server" AutoPostBack="True" Font-Size="12px" 
                                           onselectedindexchanged="ChkDesignationList_SelectedIndexChanged">
                                       </asp:CheckBoxList>
							  </div>                        
                        </li>
                        <li style="width:17.5%; margin-left:27px;">
                        <div class="grid-lable2" style="margin-left:-11px; margin-bottom:5px;">
            <asp:RadioButton ID="optAllemployee" runat="server" AutoPostBack="True" 
                    Checked="True" GroupName="Emp" 
                    oncheckedchanged="optAllemployee_CheckedChanged" Text="" 
                    /><asp:Label ID="lblAllemployee" runat="server" Text="All  employee"></asp:Label> <br />
                    <asp:RadioButton ID="optFewEmployee" runat="server" AutoPostBack="True" 
                        GroupName="Emp" 
                        Text="" 
                        oncheckedchanged="optFewEmployee_CheckedChanged" /><asp:Label ID="lblFewEmployee" runat="server" Text="Few Employee"></asp:Label><br />                       
                        </div>
							   <div class="grid-lable"> 
                      
                         <asp:CheckBoxList ID="chkemployeelist" runat="server"  onselectedindexchanged="chkemployeelist_SelectedIndexChanged" Font-Size="12px" >
                                      </asp:CheckBoxList>
                    
                    </div>                        
                        </li>
                        </ul>

                  
                 

                              </ContentTemplate>

   </asp:UpdatePanel> 
                    </div>
                    <div class="row" style="margin-left:auto; margin-right:auto; display:table; margin-top:20px;">
               
                    
                                  <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button" 
                                      Visible="False" />
								
                                <asp:Button ID="cmdShowReport" runat="server" Text="Save"  OnClick="cmdShowReport_Click" onclientclick="return validate()"
        type="button" class="btn btn-success " /><i class="fa fa-plus;"></i>&nbsp;&nbsp;
        <asp:Button ID="btnClose" runat="server" type="button" Text="Close" onclick="btnClose_Click" 
           class="btn btn-danger"
           /><i  class="fa fa-trash-o;"></i>
                    </div>
                 </div>
                </div>
              </div>
					
				</div>
            
   </div>
   </div>
  <script src="js/jquery-1.8.3.min.js"
       type="text/javascript"></script>
 
</asp:Content>
